package ${package.Mapper};

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import ${package.Entity}.${entity};
import ${package.Entity}.${entity}DTO;
import ${package.Entity}.*;
import ${superMapperClassPackage};
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ${table.comment!} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
@Repository
@Mapper
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {

    /** 查询${table.comment!}数据 */
    List<${entity}DTO> list(@Param("req") ${entity}SearchReq req);

    /** 查询${table.comment!}分页数据 */
    IPage<${entity}DTO> list(@Param("req") ${entity}SearchReq req, Page<${entity}DTO> page);

    /** 根据id查询数据 */
    ${entity}DTO getById(Long id);

}
</#if>
